import gulpError from './utils/gulpError';
App({
    onShow() {
        const motorcycleList = wx.getStorageSync('motorcycleList');
        if (!motorcycleList || motorcycleList.length === 0) {
            wx.redirectTo({
                url: '/pages/HaveOTRPage/index/index',
            });
            return;
        }
        if (gulpError !== 'gulpErrorPlaceHolder') {
            wx.redirectTo({
                url: `/pages/gulp-error/index?gulpError=${gulpError}`,
            });
        }
    },
});
